﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class SSFGL_SFMM : System.Web.UI.Page
{
  protected void Page_Load(object sender, EventArgs e)
  {

  }
  protected void Button1_Click(object sender, EventArgs e)
  {
    string khid = CommonUse.GetID("khid");
    string jfsjid = CommonUse.GetID("jfsjid");
    if (khid == "" || jfsjid == "")
      return;
    bool flag = false;
    SqlDataReader dr = YHGL.GetSFMM();
    if (dr.Read())
    {
      if (DESEncrypt.Encrypt(txtPWD1.Text) != dr["pwd"].ToString())
      {
        flag = false;
      }
      else
      {
        flag = true;
      }
    }
    dr.Close();
    string s = flag ? "1" : "0";
    string returnVal = khid + "_" + jfsjid + "_" + s;
    ClientScriptManager cs = Page.ClientScript;
    cs.RegisterStartupScript(typeof(string), "TabJs", "<script>var returnVal='" + returnVal + "';window.parent.hidePopWin(true);</script>");
  }
}